﻿<local:MainWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:local="clr-namespace:EFS.RC.ClientPlatform.UI;assembly=EFS.RC.ClientPlatform.UI"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
		xmlns:my="clr-namespace:EFS.Common.UI.Controls;assembly=EFS.Common.UI" 
		xmlns:my1="clr-namespace:EFS.RC.Wallboard.Controls.Endpoints.Customer" 
		xmlns:RSS="clr-namespace:EFS.RC.Wallboard.Controls.Common.RSS" x:Class="EFS.RC.Wallboard.Controls.MainWindow"
        Title="Wallboard" mc:Ignorable="d"
		Height="520" Width="610" MinHeight="320" MinWidth="610" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" Loaded="mainWindow_Loaded" 
		Closed="mainWindow_Closed" 
		Icon="/EFS.RC.Wallboard;component/Resources/Icons/wallboard.ico">

	<local:MainWindow.Resources>
		<!-- Styling the DockPanelSplitter -->
		<Style x:Key="HorizontalBevelGrip" TargetType="{x:Type GridSplitter}">
			<!-- Setter Property="Thickness" Value="6"/ -->
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridSplitter}">
						<Grid ToolTip="Resize" SnapsToDevicePixels="True" Background="LightGray">
							<!-- Grip -->
							<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Margin="2 0 2 0" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<!-- (could also use an image or a drawing) -->
							</StackPanel>
							<!-- Bevels -->
							<Border BorderBrush="#5AFFFFFF" BorderThickness="0,1,0,0"/>
							<Border BorderBrush="#5A000000" BorderThickness="0,0,0,1"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="VerticalBevelGrip" TargetType="{x:Type GridSplitter}">
			<!-- Setter Property="Thickness" Value="6"/ -->
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridSplitter}">
						<Grid ToolTip="Resize" SnapsToDevicePixels="True" Background="LightGray">
							<!-- Grip -->
							<StackPanel Orientation="Vertical" VerticalAlignment="Center">
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Margin="0 2 0 2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<!-- (could also use an image or a drawing) -->
							</StackPanel>
							<!-- Bevels -->
							<Border BorderBrush="#5AFFFFFF" BorderThickness="1,0,0,0"/>
							<Border BorderBrush="#5A000000" BorderThickness="0,0,1,0"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</local:MainWindow.Resources>

	<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="Auto" Width="Auto">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" MaxHeight="100" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions >
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>

		<GridSplitter 
			ResizeDirection="Rows"
			Grid.Column="0"
			Grid.ColumnSpan="1"
			Grid.Row="1"
			Width="Auto"
			Height="6"
			HorizontalAlignment="Stretch"
			VerticalAlignment="Stretch"
			Margin="0"
			Style="{StaticResource HorizontalBevelGrip}" />

		<Grid Grid.Row="0" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="Auto" Width="Auto">
			<my:Header Margin="0,0,0,0" x:Name="headerMain" VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="75" Text="Wallboard"/>
			<Menu Height="24" HorizontalAlignment="Stretch" Margin="0,75,0,0" x:Name="menuMain" VerticalAlignment="Top" Width="Auto">
				<MenuItem Header="File" x:Name="menuItemFile" Click="menuItemFile_Click" VerticalAlignment="Center">
					<MenuItem Header="Exit (Ctrl+Q)" x:Name="menuItemFileExit" />
				</MenuItem>
				<MenuItem Header="Tools" x:Name="menuItemTools" Click="menuItemTools_Click" VerticalAlignment="Center">
					<MenuItem Header="Filter Phones" x:Name="menuItemToolsFilterPhones" />
				</MenuItem>
			</Menu>
			<Border Height="1" Background="DarkGray" HorizontalAlignment="Stretch" Margin="0,99,0,0 " VerticalAlignment="Top" Visibility="Visible"/>
		</Grid>
		<Grid Grid.Row="2" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="Auto" Width="Auto">
			<Grid.RowDefinitions>
				<RowDefinition Height="100" />
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions >
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>

			<GridSplitter 
				ResizeDirection="Rows"
				Grid.Column="0"
				Grid.ColumnSpan="1"
				Grid.Row="1"
				Width="Auto"
				Height="6"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Stretch"
				Margin="0"
				Style="{StaticResource HorizontalBevelGrip}" />

			<Grid Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="WhiteSmoke">
				<RSS:List HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="controlRssList" />
				<Border Height="1" Background="DarkGray" HorizontalAlignment="Stretch" Margin="0,99,0,0" VerticalAlignment="Bottom" Visibility="Visible"/>
			</Grid>

			<Grid Grid.Row="2" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="#E6E6E6" MinHeight="200">
				<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="gridPhones" Margin="10,0,10,10">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*"/>
					</Grid.ColumnDefinitions>
				</Grid>
			</Grid>
		</Grid>
	</Grid>
</local:MainWindow>